import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// echarts开始
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
// echarts开始

import {
	Api_url
} from './assets/js/api/config.js'

Vue.prototype.$url = Api_url
Vue.prototype.$objif = function(res) { //快速检查对象是否为空
	for (let item in res) {
		return true
	}
	return false
}
Vue.prototype.$money = '＄'


//导入elementui 开始
import ElementUI from 'element-ui';

// import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/element-variables.scss'
import 'element-ui/lib/theme-chalk/display.css';
import {
	Loading
} from 'element-ui';
Vue.use(ElementUI, {
	size: 'small',
	zIndex: 3000
});
import {
	ElementTiptapPlugin
} from 'element-tiptap';
import 'element-tiptap/lib/index.css';
Vue.use(ElementTiptapPlugin, {
	/* 插件配置项 */
	lang: "zh", // 见 i18n
	spellcheck: true, // 可被 editor 同名 prop 重写
});
//导入elementui 结束

// 导入请求模型 开始
import model from './assets/js/api/model.js'
Vue.prototype.$model = model
// 导入请求模型 结束


Vue.config.productionTip = false
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
